<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>The source code</title>
  <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  <style type="text/css">
    .highlight { display: block; background-color: #ddd; }
  </style>
  <script type="text/javascript">
    function highlight() {
      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js">&lt;?php
<span id='global-property-'>/**
</span> * Cube PHP Framework
 * 
 * The contents of this file are subject to the Mozilla Public License
 * Version 1.1 (the &quot;License&quot;); you may not use this file except in
 * compliance with the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 * 
 * @author Dillen / Steffen
 */

namespace Library\Web;

<span id='Library-Web-Cookies'>/**
</span> * @class Library.Web.Cookies
 * 
 * Cookies class
 */
class Response extends \Library\ArrayObject
{
	public function __construct()
	{
		$this-&gt;_storage = $_COOKIE;
	}
	
	public function clear()
	{
		$this-&gt;_storage = array();
	}
	
	public function __destruct()
	{
		foreach($this-&gt;_storage as $key =&gt; $value)
		{
			setCookie($key, $value, time() + 3600);
		}
	}
}</pre>
</body>
</html>
